//
//  ClassCollectionReusableView.m
//  GiftItems
//
//  Created by lanou3g on 15/9/19.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "ClassCollectionReusableView.h"

@implementation ClassCollectionReusableView

//重写初始化方法
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        //分区标题
        _titleName = [[UILabel alloc] initWithFrame:CGRectMake(kWidth / 2 - 15, 5, 30, 25)];
        _titleName.font = [UIFont boldSystemFontOfSize:17];
        _titleName.textColor = [UIColor purpleColor];
        _titleName.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_titleName];
        
        
        //分割线
        UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 14, kWidth / 2 - 15, 1)];
        view.backgroundColor = [UIColor whiteColor];
        [self addSubview:view];
        
        UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(kWidth / 2 + 30, 14, kWidth / 2 - 15, 1)];
        view1.backgroundColor = [UIColor whiteColor];
        [self addSubview:view1];
    }
    return self;
}

@end
